package com.lizhenhua.api.feignClient;

import com.lizhenhua.api.follback.SaveFollBack;
import com.lizhenhua.fmmall.beans.Users;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = "user-save", fallback = SaveFollBack.class)
public interface RegistUserClient {

    @PostMapping("/user/save")
    // 如果参数是一个对象 那么我们应该在实体类中添加注解
    public int save(@RequestBody Users users);


}
